{extend name="public/shop/shop-base" /}

			<div class="all">
				{block name="main"}
				<div class="child-index-3">
					<div class="child-index-3-z in-public clearfix">
						<div class="child-index-3-1 clearfix">
							
							<div class="child-index-3-6">
								<div class="child-index-3-6-1 clearfix">
									<div class="child-index-3-6-1-left">
									<h2>掌柜：<?=$shop['getMember']['full_name']?$shop['getMember']['full_name']:$shop['getMember']['tel']?></h2>

									</div>
									<div class="child-index-3-6-1-right">
										<div class="clearfix">
											<span>
												<img src="/<?=$shop['shop_avatar']?>" alt="" />
											</span>
											<h2>
												<p>店铺开店时间</p>
												<strong><?=date('Y-m-d',$shop['shop_create_time'])?></strong>
											</h2>
										</div>
									</div>
								</div>
								<div class="child-index-3-6-2 clearfix">
									
									<div class="child-index-3-6-2-1 clearfix">
										<div>

										</div>

										<ul>
											<li>
												<h2>店铺动态评分</h2>
											</li>
											<li>
												<p>描述相符<span><?=$shop['shop_desccredit']?></span></p>
											</li>
											<li>
												<p>服务态度<span><?=$shop['shop_servicecredit']?></span></p>
											</li>
											<li>
												<p>物流服务<span><?=$shop['shop_deliverycredit']?></span></p>
											</li>
										</ul>
										
									</div>

									
									<div class="child-index-3-6-2-3 clearfix active-27">
										<a href="javasciprt:void(0)" onclick="GoodsCollect(<?=$shop_id?>,1)">收藏店铺</a>
									</div>	
									
								</div>
							</div>
							
							<span class="child-index-3-1-1">店铺： <?=$shop['shop_name']?> </span>
							<a class="child-index-3-1-2" href="#">
								<?=$shop['shop_type_name']?>
							</a>

							<ul class="child-index-3-1-5 clearfix">
								<li class="child-index-3-1-5-1">[</li>
								<li class="child-index-3-1-5-2">
									描述<span><?=$shop['shop_desccredit']?></span>
								</li>
								<li class="child-index-3-1-5-2">
									服务<span><?=$shop['shop_servicecredit']?></span>
								</li>
								<li class="child-index-3-1-5-2">
									物流<span><?=$shop['shop_deliverycredit']?></span>
								</li>
								<li class="child-index-3-1-5-1">]</li>
							</ul>
						</div>
						<div class="child-index-3-2">
							<a href="javascript:void(0)" onclick="GoodsCollect(<?=$shop_id?>,1)" class="<?=hasCollect($shop_id,1)?'active-28':''?>">收藏本店</a>
							<span>
								<p>用手机逛本店</p>
								<div>
									<img src="/static/index/img/er.jpg" />
									<strong>扫描二维码逛本店</strong>
								</div>
							</span>
						</div>
					</div>
				</div>
				
				<div class="product-details-1 clearfix" style="background:url(/<?=$shop['shop_banner']?>) center center">
					
					<div class="product-details-1-1 clearfix">
						<a href="<?=url('/index/shop/shop_cover',['shop_id'=>$shop_id])?>" class="child-logo">
							<span><img src="/<?=$shop['shop_logo']?>" alt="" /></span>
						</a>

						<!--
						<div class="clearfix">
							<a href="#" class="child-a-2">优惠活动一</a>
							<a href="#" class="child-a-3">优惠活动二</a>
						</div>
						-->
					</div>
					
					<div class="product-details-1-2 ">
						<div class="clearfix product-details-1-2-z">
						<div class="in-lm-1 clearfix">
							<ul class="clearfix">
								<li class="child-push-2 news-child-push-2">
									<a href="#">所有分类</a>
									<span>≡</span>
									<!--二级分类-->
									<div class="mall-3-left">
									<ul>
										<?php if(!empty($shopCategory)){ foreach($shopCategory as $k=>$v){?>
										<li>
											<a href="<?=url('index/shop/shop_goods_list',['cat_id'=>$v['id'],'shop_id'=>$shop_id])?>"><span><?=$v['name']?></span></a>
											<ul class="mall-3-left-1">
												<?php if(!empty($v['children'])){ foreach($v['children'] as $k2=>$v2){?>
												<li class="mall-3-left-1-2 clearfix">
													<h2><a href="<?=url('index/shop/shop_goods_list',['cat_id'=>$v2['id'],'shop_id'=>$shop_id])?>"><?=$v2['name']?></a></h2>
													<div class="clearfix">
														<?php if(!empty($v2['children'])){ foreach($v2['children'] as $k3=>$v3){?>
														<a href="<?=url('index/shop/shop_goods_list',['cat_id'=>$v3['id'],'shop_id'=>$shop_id])?>"><span><?=$v3['name']?></span></a>
														<?php }} ?>
													</div>
												</li>
												<?php }} ?>
											</ul>
										</li>
										<?php }}?>

									</ul>
								</div>
								
									<!--二级分类结束-->
								</li>
								<li <?=input('cat_id')==''?'class="active-20"':''?>>
									<a href="<?=url('index/shop/shop_cover',['shop_id'=>$shop_id])?>">首页</a>
								</li>
								<?php if(!empty($shopCategory)){ foreach($shopCategory as $k=>$v){?>
								<li <?=input('cat_id')==$v['id']?'class="active-20"':''?>>
									<a href="<?=url('index/shop/shop_goods_list',['cat_id'=>$v['id'],'shop_id'=>$shop_id])?>">
										<?=$v['name']?>
									</a>
								</li>
								<?php }} ?>
							</ul>
							
							<div class="child-form-1">
								<form class="clearfix" action="<?=url('index/shop/shop_goods_list')?>">
									<input type="text" name="figure_nu" placeholder="请输入产品图号" />
									<input type="hidden" name="shop_id" value="<?=$shop_id?>">
									<button type="submit">搜索</button>
								</form>
							</div>
							
						</div>
						
						</div>
					</div>
					
						
						
				</div>

				<script type="text/javascript">
				jQuery(".child-mall .slideBox").slide({mainCell:".bd ul",autoPlay:true});
				</script>
				
				<div class="child-index-1">
					<!--slide-->
					<div id="slideBox" class="slideBox">
						<div class="hd">
							<ul class="clearfix"><li></li><li></li></ul>
						</div>
						<div class="bd">
							<ul>
								<?php if(!empty($shop_adv)){ foreach($shop_adv as $k=>$v){?>
								<li>
									<a href="<?=$v['adv_url']?>" target="_blank">
										<img src="/<?=$v['adv_image']?>" />
									</a>
								</li>
								<?php }} ?>
							</ul>
						</div>
			
						<!-- 下面是前/后按钮代码，如果不需要删除即可 -->
						<a class="prev" href="javascript:void(0)"></a>
						<a class="next" href="javascript:void(0)"></a>
			
					</div>

					<script type="text/javascript">
					jQuery(".child-index-1 .slideBox").slide({mainCell:".bd ul",autoPlay:true});
					</script>
					<!--slide-->
				</div>
				
				<div class="child-index-2 clearfix">
				
					<!--左边栏目-->
					
					<div class="product-details-3-1-left">

								<div class="child-index-2-left-1">
									<form action="<?=url('index/shop/shop_goods_list')?>">
										<h2 class="p-d-3-left-4">
											本店搜索
										</h2>
											<ul>
												<li class="child-index-2-left-1-1 clearfix">
													<span>图号</span>
													<input type="text" name="figure_nu" placeholder="请输入图号" />
												</li>
												<li class="child-index-2-left-1-2 clearfix">
													<span>价格</span>
													<strong class="child-index-2-left-1-2-1 clearfix">
														<input type="text" name="min_price" placeholder="" />
														<i>¥</i>
													</strong>
													<strong class="child-index-2-left-1-2-2 clearfix">
														<input type="text" name="max_price" placeholder="" />
														<i>¥</i>
													</strong>
												</li>
												<li class="child-index-2-left-1-3 clearfix">
													<button type="submit">搜索</button>
												</li>
											</ul>
											<input type="hidden" name="shop_id" value="<?=$shop_id?>">
										</form>
									</div>

									<!--
									<div class="p-d-3-left-z-1 p-d-3-left-z-2">
										<h2 class="p-d-3-left-4">
											店铺产品分类
										</h2>

										<div class="sideMenu">
											<h3 class="on"><em></em>产看所有产品</h3>
											<div class="p-d-3-left-5 p-d-3-left-5-1 clearfix">
												<a href="#">按销量</a>
												<a href="#">按新品</a>
												<a href="#">按价格</a>
												<a href="#">按收藏</a>
											</div>
											
											<h3><em></em>活动专区</h3>
											
											<div class="p-d-3-left-5 p-d-3-left-5-2">
												<span><a href="#">第二件半价</a></span>
												<span><a href="#">1元换购</a></span>
												<span><a href="#">尖货专区</a></span>
												<span><a href="#">心动大礼包</a></span>
												<span><a href="#">12月3日新品</a></span>
												<span><a href="#">12月3日新品</a></span>
												<span><a href="#">12月3日新品</a></span>
												<span><a href="#">12月3日新品</a></span>
												<span><a href="#">12月3日新品</a></span>
											</div>
								
											<h3><em></em>新品专区</h3>
								
											<div class="p-d-3-left-5 p-d-3-left-5-2">
												<span><a href="#">12月3日新品</a></span>
												<span><a href="#">12月3日新品</a></span>
												<span><a href="#">12月3日新品</a></span>
												<span><a href="#">12月3日新品</a></span>
												<span><a href="#">12月3日新品</a></span>
												<span><a href="#">12月3日新品</a></span>
												<span><a href="#">12月3日新品</a></span>
												<span><a href="#">12月3日新品</a></span>
												<span><a href="#">12月3日新品</a></span>
											</div>
											
											<h3><em></em>美食美器</h3>
											<div class="p-d-3-left-5 p-d-3-left-5-2">
												<span><a href="#">盘</a></span>
												<span><a href="#">碗</a></span>
												<span><a href="#">碟</a></span>
												<span><a href="#">惨器套装</a></span>
												<span><a href="#">西餐具</a></span>
												<span><a href="#">餐垫/锅垫</a></span>
												<span><a href="#">水杯/咖啡杯</a></span>
												<span><a href="#">水壶</a></span>
												<span><a href="#">筷子/筷架</a></span>
											</div>
								
								
										</div>
	
										<script type="text/javascript">											
											jQuery(".p-d-3-left-z-2 .sideMenu").slide({
												titCell:"h3", 												
												targetCell:".p-d-3-left-5",
												defaultIndex:1,
												effect:"slideDown",
												delayTime:300,
												trigger:"click"
												});
												
										</script>
										
									</div>
									
									<div class="p-d-3-left-z-1 p-d-3-left-z-3">
										<h2 class="p-d-3-left-4">
											产品排行榜
										</h2>

										<div id="con" class="">
	
											<ul id="tags" class="p-d-3-left-z-3-1 clearfix">
												<li class="selectTag">
													<a onClick="selectTag('tagContent0',this)" href="javascript:void(0)">销售量</a> 
												</li>
												<li>
													<a onClick="selectTag('tagContent1',this)"  href="javascript:void(0)">收藏数</a> 
												</li>
											</ul>
	
											<div id="tagContent">
												<div class="tagContent selectTag" id="tagContent0">
													
													<ul class="p-d-3-left-z-3-2">
														<li class="clearfix">
															<a href="#" class="clearfix">
																<span>
																	<img src="/static/index/img/p04.jpg" />
																</span>
																<div>
																	<h2>01.陶瓷创意舒芙蕾烤碗双皮奶甜品碗可爱布丁杯蒸蛋糕碗烤箱模具烤盅</h2>
																	<strong>￥9.90</strong>
																	<p>已售出<span>78627</span>笔</p>
																</div>
															</a>
														</li>
														<li class="clearfix">
															<a href="#" class="clearfix">
																<span>
																	<img src="/static/index/img/p04.jpg" />
																</span>
																<div>
																	<h2>陶瓷创意舒芙蕾烤碗双皮奶甜品碗可爱布丁杯蒸蛋糕碗烤箱模具烤盅</h2>
																	<strong>￥9.90</strong>
																	<p>已售出<span>78627</span>笔</p>
																</div>
															</a>
														</li>
														<li class="clearfix">
															<a href="#" class="clearfix">
																<span>
																	<img src="/static/index/img/p04.jpg" />
																</span>
																<div>
																	<h2>陶瓷创意舒芙蕾烤碗双皮奶甜品碗可爱布丁杯蒸蛋糕碗烤箱模具烤盅</h2>
																	<strong>￥9.90</strong>
																	<p>已售出<span>78627</span>笔</p>
																</div>
															</a>
														</li>
														<li class="clearfix">
															<a href="#" class="clearfix">
																<span>
																	<img src="/static/index/img/p04.jpg" />
																</span>
																<div>
																	<h2>陶瓷创意舒芙蕾烤碗双皮奶甜品碗可爱布丁杯蒸蛋糕碗烤箱模具烤盅</h2>
																	<strong>￥9.90</strong>
																	<p>已售出<span>78627</span>笔</p>
																</div>
															</a>
														</li>
														<li class="clearfix">
															<a href="#" class="clearfix">
																<span>
																	<img src="/static/index/img/p04.jpg" />
																</span>
																<div>
																	<h2>陶瓷创意舒芙蕾烤碗双皮奶甜品碗可爱布丁杯蒸蛋糕碗烤箱模具烤盅</h2>
																	<strong>￥9.90</strong>
																	<p>已售出<span>78627</span>笔</p>
																</div>
															</a>
														</li>
														<li class="clearfix">
															<a href="#" class="clearfix">
																<span>
																	<img src="/static/index/img/p04.jpg" />
																</span>
																<div>
																	<h2>陶瓷创意舒芙蕾烤碗双皮奶甜品碗可爱布丁杯蒸蛋糕碗烤箱模具烤盅</h2>
																	<strong>￥9.90</strong>
																	<p>已售出<span>78627</span>笔</p>
																</div>
															</a>
														</li>
														<li class="clearfix">
															<a href="#" class="clearfix">
																<span>
																	<img src="/static/index/img/p04.jpg" />
																</span>
																<div>
																	<h2>陶瓷创意舒芙蕾烤碗双皮奶甜品碗可爱布丁杯蒸蛋糕碗烤箱模具烤盅</h2>
																	<strong>￥9.90</strong>
																	<p>已售出<span>78627</span>笔</p>
																</div>
															</a>
														</li>
														<li class="clearfix">
															<a href="#" class="clearfix">
																<span>
																	<img src="/static/index/img/p04.jpg" />
																</span>
																<div>
																	<h2>陶瓷创意舒芙蕾烤碗双皮奶甜品碗可爱布丁杯蒸蛋糕碗烤箱模具烤盅</h2>
																	<strong>￥9.90</strong>
																	<p>已售出<span>78627</span>笔</p>
																</div>
															</a>
														</li>
														<li class="clearfix">
															<a href="#" class="clearfix">
																<span>
																	<img src="/static/index/img/p04.jpg" />
																</span>
																<div>
																	<h2>陶瓷创意舒芙蕾烤碗双皮奶甜品碗可爱布丁杯蒸蛋糕碗烤箱模具烤盅</h2>
																	<strong>￥9.90</strong>
																	<p>已售出<span>78627</span>笔</p>
																</div>
															</a>
														</li>
													</ul>
													
												</div>
												<div class="tagContent" id="tagContent1">
													<ul class="p-d-3-left-z-3-2">
														<li class="clearfix">
															<a href="#" class="clearfix">
																<span>
																	<img src="/static/index/img/p04.jpg" />
																</span>
																<div>
																	<h2>02.陶瓷创意舒芙蕾烤碗双皮奶甜品碗可爱布丁杯蒸蛋糕碗烤箱模具烤盅</h2>
																	<strong>￥9.90</strong>
																	<p>已售出<span>78627</span>笔</p>
																</div>
															</a>
														</li>
														<li class="clearfix">
															<a href="#" class="clearfix">
																<span>
																	<img src="/static/index/img/p04.jpg" />
																</span>
																<div>
																	<h2>陶瓷创意舒芙蕾烤碗双皮奶甜品碗可爱布丁杯蒸蛋糕碗烤箱模具烤盅</h2>
																	<strong>￥9.90</strong>
																	<p>已售出<span>78627</span>笔</p>
																</div>
															</a>
														</li>
														<li class="clearfix">
															<a href="#" class="clearfix">
																<span>
																	<img src="/static/index/img/p04.jpg" />
																</span>
																<div>
																	<h2>陶瓷创意舒芙蕾烤碗双皮奶甜品碗可爱布丁杯蒸蛋糕碗烤箱模具烤盅</h2>
																	<strong>￥9.90</strong>
																	<p>已售出<span>78627</span>笔</p>
																</div>
															</a>
														</li>
														<li class="clearfix">
															<a href="#" class="clearfix">
																<span>
																	<img src="/static/index/img/p04.jpg" />
																</span>
																<div>
																	<h2>陶瓷创意舒芙蕾烤碗双皮奶甜品碗可爱布丁杯蒸蛋糕碗烤箱模具烤盅</h2>
																	<strong>￥9.90</strong>
																	<p>已售出<span>78627</span>笔</p>
																</div>
															</a>
														</li>
														<li class="clearfix">
															<a href="#" class="clearfix">
																<span>
																	<img src="/static/index/img/p04.jpg" />
																</span>
																<div>
																	<h2>陶瓷创意舒芙蕾烤碗双皮奶甜品碗可爱布丁杯蒸蛋糕碗烤箱模具烤盅</h2>
																	<strong>￥9.90</strong>
																	<p>已售出<span>78627</span>笔</p>
																</div>
															</a>
														</li>
														<li class="clearfix">
															<a href="#" class="clearfix">
																<span>
																	<img src="/static/index/img/p04.jpg" />
																</span>
																<div>
																	<h2>陶瓷创意舒芙蕾烤碗双皮奶甜品碗可爱布丁杯蒸蛋糕碗烤箱模具烤盅</h2>
																	<strong>￥9.90</strong>
																	<p>已售出<span>78627</span>笔</p>
																</div>
															</a>
														</li>
														<li class="clearfix">
															<a href="#" class="clearfix">
																<span>
																	<img src="/static/index/img/p04.jpg" />
																</span>
																<div>
																	<h2>陶瓷创意舒芙蕾烤碗双皮奶甜品碗可爱布丁杯蒸蛋糕碗烤箱模具烤盅</h2>
																	<strong>￥9.90</strong>
																	<p>已售出<span>78627</span>笔</p>
																</div>
															</a>
														</li>
														<li class="clearfix">
															<a href="#" class="clearfix">
																<span>
																	<img src="/static/index/img/p04.jpg" />
																</span>
																<div>
																	<h2>陶瓷创意舒芙蕾烤碗双皮奶甜品碗可爱布丁杯蒸蛋糕碗烤箱模具烤盅</h2>
																	<strong>￥9.90</strong>
																	<p>已售出<span>78627</span>笔</p>
																</div>
															</a>
														</li>
														<li class="clearfix">
															<a href="#" class="clearfix">
																<span>
																	<img src="/static/index/img/p04.jpg" />
																</span>
																<div>
																	<h2>陶瓷创意舒芙蕾烤碗双皮奶甜品碗可爱布丁杯蒸蛋糕碗烤箱模具烤盅</h2>
																	<strong>￥9.90</strong>
																	<p>已售出<span>78627</span>笔</p>
																</div>
															</a>
														</li>
													</ul>
													
												</div>
											</div>
										</div>

										 <script type="text/javascript">
												function selectTag(showContent,selfObj){
													var tag = document.getElementById("tags").getElementsByTagName("li");
													var taglength = tag.length;
													for(i=0; i<taglength; i++){
														tag[i].className = "";
													}
													selfObj.parentNode.className = "selectTag";
													for(i=0; j=document.getElementById("tagContent"+i); i++){
														j.style.display = "none";
													}
													document.getElementById(showContent).style.display = "block";
												}
											</script>
										
									</div>
									-->

									<div class="p-d-3-left-z-1 p-d-3-left-z-4">
										<h2 class="p-d-3-left-4 clearfix">
											<span>产品推荐</span>
											<a href="#">更多</a>
										</h2>
										
										<div class="p-d-3-left-z-4-1">
											<ul>
												<?php if(!empty($recommendGoods)){ foreach($recommendGoods as $k=>$v){?>
												<li>
													<a href="<?=url('index/goods/goodsDetail',['goods_id'=>$v['goods_id']])?>">
														<span>
															<img src="/<?=$v['original_img']?>" alt="" />
														</span>
														<div>
															<h2><?=$v['goods_name']?></h2>
															<p>
																¥<strong><?=$v['shop_price']?></strong>
															</p>
														</div>
													</a>
												</li>
												<?php }} ?>
											</ul>
										</div>
										
									</div>
									
								</div>
								

					
					<div class="child-index-2-right">
						
						<div class="child-index-2-right-1">
							
							<div class="child-index-2-title-1 clearfix">
								<h2 class="clearfix">
								<span>推荐商品</span>
								<a href="#">更多></a>
								</h2>
							</div>
							
							<!--产品列表-->
							<div class="Shopping-Mall-3-1-right-3">
									<ul class="clearfix">
										<?php if(!empty($recommendGoods)){ foreach($recommendGoods as $k=>$v){?>
										<li>
											<div class="Shopping-Mall-3-1-right-3-1">
												<a href="<?=url('index/goods/goodsDetail',['goods_id'=>$v['goods_id']])?>">
													<span class="Shopping-Mall-3-1-right-3-2">
														<span></span>
														<img src="/<?=$v['original_img']?>" alt="" />
													</span>
													<div>
														<strong>¥ <?=$v['shop_price']?></strong>
														<h2><?=$v['goods_name']?></h2>
														<p class="clearfix">
															<span>已售：<i><?=$v['sales_sum']?></i>件</span>
															<span>评论数：<i><?=$v['comment_count']?></i></span>
														</p>
													</div>
												</a>
												<h4 class="clearfix">
													<a href="javascript:void(0)" onclick="GoodsCollect(<?=$v['goods_id']?>)" class="Shopping-Mall-3-1-right-3-3 <?=hasCollect($v['goods_id'])?'active-22':''?>">收藏</a>
													<a href="#" class="Shopping-Mall-3-1-right-3-4 active-23">加入购物车</a>
													<!--active-22 active-22 表示用户登陆后已经收藏或将该商品加入例如购物车。添加该样式-->
												</h4>
											</div>
										</li>
										<?php }} ?>
									</ul>
							</div>
							<!--产品列表结束-->							
						</div>
						
						<div class="child-index-2-right-1">
							
							<div class="child-index-2-title-1 clearfix">
								<h2 class="clearfix">
								<span>新品上架</span>
								<a href="#">更多></a>
								</h2>
							</div>
							
							<!--产品列表-->
							<div class="Shopping-Mall-3-1-right-3">
									<ul class="clearfix">
										<?php if(!empty($newGoods)){ foreach($newGoods as $k=>$v){?>
										<li>
											<div class="Shopping-Mall-3-1-right-3-1">
												<a href="<?=url('index/goods/goodsDetail',['goods_id'=>$v['goods_id']])?>">
													<span class="Shopping-Mall-3-1-right-3-2">
														<span></span>
														<img src="/<?=$v['original_img']?>" alt="" />
													</span>
													<div>
														<strong>¥ <?=$v['shop_price']?></strong>
														<h2><?=$v['goods_name']?></h2>
														<p class="clearfix">
															<span>已售：<i><?=$v['sales_sum']?></i>件</span>
															<span>评论数：<i><?=$v['comment_count']?></i></span>
														</p>
													</div>
												</a>
												<h4 class="clearfix">
													<a href="javascript:void(0)" onclick="GoodsCollect(<?=$v['goods_id']?>)" class="Shopping-Mall-3-1-right-3-3 <?=hasCollect($v['goods_id'])?'active-22':''?>">收藏</a>
													<a href="#" class="Shopping-Mall-3-1-right-3-4 active-23">加入购物车</a>
													<!--active-22 active-22 表示用户登陆后已经收藏或将该商品加入例如购物车。添加该样式-->
												</h4>
											</div>
										</li>
										<?php }} ?>
									</ul>
								</div>

							<!--产品列表结束-->
							
						</div>

						
					</div>
					
					
				</div>
				{/block}
			</div>

{block name="js"}
<script>
	function GoodsCollect($id,$type=0){
		if($type>1){
			layer.msg('参数失败');
		}
		let data = {};
		if($type == 0){
			data = {type:$type,'goods_id':$id};
		}else{
			data = {type:$type,'shop_id':$id};
		}
		$.ajax({
			type:'post',
			url:"<?=url('common/GoodsCollect/create')?>",
			data:data,
			dataType:'json',
			success:function(res){
				layer.msg(res.msg);
			},
			error:function(res){

			}
		});
	}
</script>
{/block}